import { Collapse as AntdCollapse } from 'antd';
import React from 'react';
import Panel from './Panel';

import type { CollapseProps as AntdCollapseProps } from 'antd';

export type { Props as CollapsePanelProps } from './Panel';
export { Panel };

export type CollapseProps = AntdCollapseProps;

function Collapse(props: CollapseProps) {
  return <AntdCollapse {...props} />;
}

Collapse.Panel = Panel;
export default Collapse;
